package com.linkhub.oms.common.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @Description: ShopifyConstant
 * @Author: echo
 * @Date: 2024/3/21 16:13
 * @Version: 1.0
 */
public class ShopifyConstant {
    public static final String SHOPIFY_URL_KEY = "shopify";
    public static final String ACCESS_TOKEN_HEADER = "X-Shopify-Access-Token";

    public static final int ACCESS_TOKEN_UNAUTHORIZED_STATUS_CODE = 401;

    public static final int AUTHORIZATION_CODE_EXPIRE_STATUS_CODE = 400;

    public static final String PRODUCT_DATA_TYPE_KEY = "product";

    public static final String  ORDER_DATA_TYPE_KEY = "order";

    public static final String  DEFAULT_SHIPPING_URL = "order";
    /**
     * 物流网址设置运单号替换标识
     */
    public static final String TRACK_NUMBER = "[tracknumber]";
    /**
     * 物流追踪网址
     */
    public static final String LOGISTICS_TRACKING_URL = "https://t.17track.net/en?nums=" + TRACK_NUMBER;

    public static final String TRACKING_INFO_COMPANY = "YunExpress";

    public static final List<String> MUST_ACCESS_SCOPES = Arrays.asList("read_products", "read_orders");
}
